/*
 * Created: Author: Aléx Carvalho / Date: 6/mai/2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-06-11 01:28:43 -0300 (Thu, 11 Jun 2015) $
 */
package com.cpm.controller;

import com.cpm.ServiceLocator;
import com.cpm.entities.Competence;
import com.cpm.jobs.JobManager;

public class CompetenceController {

    public void updateTarget(Competence competence) {
        update(competence);
    }

    public void updateResult(Competence competence) {
        update(competence);
    }

    private void update(Competence c) {
        ServiceLocator.getCompetenceRepository().update(c);

        JobManager jobManager = new JobManager();
        jobManager.jobCalculatePerformanceCompetence(c);
    }
}
